package com.cuijq.ms.adapt.v4.impl;

import com.cuijq.ms.adapt.v4.ASensitiveWordsFilter;
import com.cuijq.ms.adapt.v4.ISensitiveWordsFilter;

/**
 * @author by CuiJQ
 * @Classname ASensitiveWordsFilterAdaptor
 * @Description ASensitiveWordsFilterAdaptor Description
 * @Date 2021/5/26 22:40
 */
public class ASensitiveWordsFilterAdaptor
    implements ISensitiveWordsFilter {

  private ASensitiveWordsFilter aFilter;

  @Override
  public String filter(String text) {
    String maskedText = aFilter.filterSexyWords(text);
    maskedText = aFilter.filterPoliticalWords(maskedText);
    return maskedText;
  }
}

